package kr.inani.android;


import kr.inani.R;
import kr.inani.android.db.DBHelper;
import android.app.Application;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class Global extends Application {
	
	private static Bitmap defaultBookImage;
	private DBHelper		dbHelper;
	
	@Override
	public void onCreate() {
		super.onCreate();
		defaultBookImage = BitmapFactory.decodeResource(getApplicationContext().getResources(), R.drawable.default_book);
		dbHelper = new DBHelper(this);
	}

	public static Bitmap getDefaultBookBitmap()
	{
		return defaultBookImage;
	}
	
	public DBHelper getDBHelper()
	{
		return dbHelper;
	}
}
